//
//  HCKPIViewController.m
//  HelloCall
//
//  Created by WangYongpeng on 13-9-21.
//  Copyright (c) 2013年 HC. All rights reserved.
//

#import "HCKPIViewController.h"

@interface HCKPIViewController ()

@property (nonatomic, retain) UINavigationController* navigationController;
@property (nonatomic, retain) UIWebView* webView;

@end

@implementation HCKPIViewController

@synthesize navigationController = m_navigationController;
@synthesize webView = m_webView;

- (id)init
{
    self = [super init];
    if (nil != self)
    {
        self.navigationController = [[UINavigationController alloc] initWithRootViewController:self];
        [self.view addSubview:self.navigationController.view];
        self.title = @"超级KPI";
        
        
        self.webView = [[[UIWebView alloc] initWithFrame:CGRectMake(0, 43, [[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height - 80)] autorelease];
        [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://m.baidu.com"]]];
        [self.view addSubview:self.webView];
    }
    
    return self;
}

- (void)dealloc
{
    self.navigationController = nil;
    self.webView = nil;
    
    [super dealloc];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor orangeColor];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
